package com.itheima.enumdemo;

/**
 * @author jiangxun
 * @date 11-17-2024
 */
public class Test {
    /**
     * 认识枚举类
     */
    public static void main(String[] args) {
        A a1 = A.X;
        System.out.println(a1);
        A a2 = A.Y;
        System.out.println(a2);

        System.out.println(a1.name());
        System.out.println(a2.name());
        System.out.println(a1.ordinal());
        System.out.println(a2.ordinal());

    }
}
